package com.course.business.controller.admin;


/**
 * @author wqk
 */
import com.course.server.dto.PageDto;
import com.course.server.server.ChapterServer;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("admin/chapter")
public class ChapterController {

    @Resource
    ChapterServer chapterServer;

    @RequestMapping("/list")
    public PageDto list(@RequestBody PageDto pageDto) {
        chapterServer.list(pageDto);
        return pageDto;
    }

}
